package main

import "fmt"

type student struct {
	name  string
	sex   string
	age   int
	score int
	addr  string
}

func main0101() {
	m := make(map[int]student)
	m[101] = student{"擎天柱", "男", 30, 100, "赛博坦星球"}
	m[102] = student{"大黄蜂", "男", 10, 59, "赛博坦星球"}
}

func main() {
	m := make(map[int][]student)
	m[101] = []student{student{"擎天柱", "男", 30, 100, "赛博坦星球"},
		student{"大黄蜂", "男",10,18,"赛博坦星球"}}
	m[101] = append(m[101], student{"伯爵", "男", 30, 88, "赛博坦星球"})
	m[102] = []student{student{"娜美", "女", 18,100,"伟大的航路"}}
	m[102] = append(m[102],student{"雏田", "女",20,99,"木叶村"})
	fmt.Println(m)
}
